package com.example.news.service;

import com.example.news.pojo.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.news.pojo.form.RoleForm;
import com.example.news.pojo.form.RolePageQuery;
import com.example.news.pojo.vo.RoleVo;
import com.example.news.utils.result.PageResult;
import com.example.news.utils.result.Result;

/**
* @author 86147
* @description 针对表【role(角色表)】的数据库操作Service
* @createDate 2023-10-18 21:55:05
*/
public interface RoleService extends IService<Role> {
    Result<RoleVo> getRoleById(Integer id);

    PageResult<RoleVo> getRoleList(RolePageQuery rolePageQuery);

    Result<String> addRole(RoleForm roleForm);

    Result<String> updateRole(RoleForm roleForm);

    Result<String> deleteRoleById(Integer id);
}
